
<?php
	
	

	// Fill rows
	//// Row labels being associated with user data
	$info_rows[] = array('Pers.Nr.:'	,$employee->id);
	$info_rows[] = array('Rolle:'		,$active_teamrole->roletype()->name);
	$info_rows[] = array('Team:'		,$active_teamrole->team()->name);
	
	$contactdata = $employee->contactdata();
	
	if(0 == $contactdata->title)
		$info_rows[] = array('Geschlecht:'	,'Herr');
	else
		$info_rows[] = array('Geschlecht:'	,'Frau');
	
	
	
	$info_rows[] = array('Vorname:'		,$contactdata->forename);
	$info_rows[] = array('Nachname:'	,$contactdata->surname);
	$info_rows[] = array('Telefon:'		,$contactdata->phone);
	$info_rows[] = array('Email:'		,$contactdata->email);
	$info_rows[] = array('Standort:'	,$contactdata->place()->city);
	
	//// Table templates and CSS anchors
	//// (The formattings defined here @ <<row_alt_start>> will be applied to the first
	////  row and subsequently to every second row.)
	$infotable 	 = array('table_open' 	=> '<table class="tbl_align tbl_details">',
						'row_start' 	=> '<tr class="tr_alt">',
						'row_alt_start' => '<tr>'
						);

	// Format table
	$this->table->set_template($infotable);

	// Fill table with data
	
	foreach($info_rows as $row)
	{
		$this->table->add_row($row);	
	}

	// Output table code
	echo $this->table->generate();

	// Cleanup table data
	$this->table->clear();
	
	echo "";

?>
<br>
<hr />
	<?php echo form_open($form['target']); ?>
	<label for="pw_old">Altes Passwort:</label><?php echo form_input($form['pw_old']); ?>
	<label for="pw_new">Neues Passwort:</label> <?php echo form_input($form['pw_new']); ?>
	<label for="pw_approve">Passwort bestätigen:</label><?php echo form_input($form['pw_approve']); ?>
<br />
	<?php echo form_close(); ?>
<br />
